package com.xgk.boot.module.core.service.order;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xgk.boot.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.xgk.boot.module.core.dal.entity.order.OrderBoxDO;
import com.xgk.boot.module.core.dal.mapper.order.OrderBoxMapper;
import com.xgk.boot.module.core.dal.iservice.order.OrderBoxService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单箱子信息表 服务实现类
 * 箱号唯一
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Service
public class OrderBoxServiceImpl extends ServiceImpl<OrderBoxMapper, OrderBoxDO> implements OrderBoxService {

    // 根据订单code获取订单箱子货物列表信息
    public List<OrderBoxDO> getBoxListByOrderCode(String orderCode){
        return this.list(new LambdaQueryWrapperX<OrderBoxDO>().eq(OrderBoxDO::getOrderCode,orderCode));
    }
}
